package com.java.demo.model;

import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;

@Component
public class Articles2 {
    @Bean("abc")
    public ArticleInfo getArticle(int id){
        //伪代码
        ArticleInfo articleInfo = new ArticleInfo();
        articleInfo.setId(3);
        articleInfo.setTitle("今天周几？");
        articleInfo.setContent("今天周3");
        articleInfo.setCreateTime(LocalDateTime.now());
        return articleInfo;
    }
}
